﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Billing2.Default" %>

<%@ Register Src="~/Controls/ucForgotPassword.ascx" TagName="ucForgotPassword" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Src="~/Controls/ucHighlight.ascx" TagName="ucHighlight" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <meta http-equiv="Cache-Control" content="no-cache, no-store" />
    <title>Welcome To Login Page</title>
    <link type="text/css" href="Css/jquery-ui-1.11.1.min.css" rel="stylesheet" />
    <link href="orange.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="Scripts/jquery-1.12.4.min.js"></script>
    <script type="text/javascript" src="Scripts/jquery-ui-1.11.1.min.js"></script>
    <script type="text/javascript" src="Scripts/customScript.js"></script>
    <script type="text/javascript" src="stmenu.js"></script>
    <script type="text/javascript" src="Scripts/sha512.js"></script>
    <script type="text/javascript" src="Scripts/base64.js"></script>
    <script type="text/javascript">
        $(function () {
            // Dialog 
            $('#dialogSave').dialog({
                autoOpen: false,
                width: 600,
                modal: true
            });
            $('#dialog').parent().appendTo($("form"));
        });

        function EncryptPassword() {
            //alert('test');
            //console.log("EncryptPassword");
            var data = document.getElementById("txtPassword").value;
            data = CryptoJS.SHA512(data).toString();
            //console.log(data);
            //data = Base64.encode(data);
            //console.log(data);
            document.getElementById("txtPassword").value = data;
            //alert(data);
            return true;
        }
    </script>
</head>
<body class="nobg loginPage">
    <form id="form1" runat="server" defaultbutton="btnLogin" class="form">
        <asp:HiddenField ID="request_id" runat="server" />
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
        <table width="1170" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td><table width="1090" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="10"></td>
        <td align="right" valign="bottom" style="padding-right:50px;"></td>
        <td></td>
      </tr>
      <tr>
        <td width="280" height="65" valign="top"><img src="images/logoepp2.gif" alt="" width="234" height="45" /></td>
        <td align="center" valign="bottom" style="padding-right:50px;"><script type="text/javascript" src="menu2.js"></script></td>
        <td width="106" valign="top"><img src="images/logocertis2.gif" alt="" width="106" height="45" /></td>
      </tr>
      </table> <table width="1170" border="0" cellspacing="0" cellpadding="0" bgcolor="#fdc464">
        <tr>
          <td height="6"></td>
        </tr>
      </table>
      <table width="1170" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><img src="images/tit2.gif" width="1170" height="68" /></td>
  </tr>
</table>
<table width="1170" border="0" cellspacing="0" cellpadding="0" bgcolor="#fdc464">
        <tr>
          <td height="1"></td>
        </tr>
      </table>
      <table width="1170" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="25" style="padding:30px;padding-top:10px;"><div class="container" runat="server" id="ContainerDiv">
        <!-- Main content wrapper -->
        <div class="loginWrapper">
            <div class="widget" align="center">
                <div class="title">
                    <h1 style="text-align: left">
                        LOGIN</h1>
                </div>
                <fieldset style="border-style: none; width: 400px; text-align: left;">
                        
                    <div class="formRow">
                        <label for="login">
                            Login ID:</label>
                        <div class="loginInput">
                            <asp:TextBox ID="txtUserName" runat="server" Width="200px" TabIndex="1" Height="25" AutoCompleteType="Disabled"></asp:TextBox></div>
                        <div style="height: 10px" >
                        </div>
                    </div>
                    <div class="formRow">
                        <label for="pass">
                            Password:</label>
                        <div class="loginInput">
                            <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" Width="200px" TabIndex="2" Height="25" AutoCompleteType="Disabled" autocomplete="off"></asp:TextBox></div>
                        <div style="height: 10px" >
                        </div>
                    </div>
                    <div class="loginControl">
                        <div class="rememberMe">
                            <asp:Button ID="LinkPassword" runat="server" BorderStyle="None" Font-Underline="true"
                                Text="Forgot Password" OnClientClick="openDialog('#dialogSave');return false;"
                                BackColor="White" ForeColor="Blue" CausesValidation="false" 
                                Visible="False" TabIndex="3"></asp:Button>
                            <asp:LinkButton ID="LinkButton1" runat="server" 
                                OnClientClick="openDialog('#dialogSave');return false;" 
                                CausesValidation="false" TabIndex="4">Forgot Password</asp:LinkButton>
                                </div>
                        <div style="height: 10px" >
                        </div>
                        <asp:Button ID="btnLogin" runat="server" class="dredB logMeIn" 
                            OnClick="btnLogin_Click" TabIndex="5" CssClass="greenB logMeIn" OnClientClick="return EncryptPassword();" />
                        <div class="clear">
                        </div>
                    </div>
                </fieldset>
                <br/>
                <uc1:ucHighlight ID="ucHighlight1" runat="server" />
            </div>
        </div>

        <div id="dialogSave" title="Reset Password" style="display: none">
            <div id="dialogSaveEffect">
                <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                    <ContentTemplate>
                        <uc1:ucForgotPassword ID="ucForgotPassword1" runat="server" />
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
        </div>
              <div style="height:100px"></div>
    </div>
    <asp:RoundedCornersExtender ID="RoundedCornersExtender1" runat="server" TargetControlID="ContainerDiv"
        Radius="0">
    </asp:RoundedCornersExtender></td>
        </tr>
      </table>
      <table width="1170" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#fdba6c" style="color:#FFF">
        <tr>
          <td align="center" class="rights">© 2014 Certis CISCO. All rights Reserved. </td>
        </tr>
    </table></td>
  </tr>
</table>
    
    </form>
</body>
</html>
